﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sale.Domain
{
    /// <summary>
    /// 销售合同(Contract)			
    /// </summary>
    public class ContractModel:BaseEntity
    {
        /// <summary>
        /// 合同Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Key]
        public int ContractId { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        public string ContractCode { get; set; }
        /// <summary>
        /// 合同名称
        /// </summary>
        public string ContractName { get; set; }
        /// <summary>
        /// 客户Id（主键唯一标识）
        /// </summary>
        public int ClientId { get; set; }
        /// <summary>
        /// 签订日期
        /// </summary>
        public DateTime SigningDate { get; set; }
        /// <summary>
        /// 发货日期
        /// </summary>
        public DateTime ShippingDate { get; set; }
        /// <summary>
        /// 合同金额
        /// </summary>
        public double DiscountAmount {  get; set; }
        /// <summary>
        /// 送货地址
        /// </summary>
        public string DeliveryAdder { get; set; }
        /// <summary>
        ///是否审核0未审核1已通过2已驳回
        /// </summary>
        public int ContractState { get; set; }
        /// <summary>
        /// 合同备注
        /// </summary>
        public string ContractRemark {  get; set; }
        /// <summary>
        /// 当前登录人（审批人）
        /// </summary>
        public int LoginUserId {  get; set; }
    }
}
